package com.xxwu.springiocdi.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
//打印日志更方便的方法，通过Slf4j自动生成一个log对象
@Slf4j
public class LoggerController2 {
    @RequestMapping("/logger")
    public String logger(){
        log.info("--------打印日志--------");
        return "打印成功";
    }
}
